#ifndef BMC_TLPR_LINUX_PTHREAD_H__
#define BMC_TLPR_LINUX_PTHREAD_H__
/*
   GPL
   Free soft,no warranted
   We are all in the mud, but some of us are looking at the stars.
   We are not born for ourselves.
   */

#include "tltypes.h"
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>


#ifdef __STRICT_ANSI__
  #define TL_INLINE_SPECIFIER	static __inline
  #define TL_ATTR_NORETURN
#else
  #define TL_INLINE_SPECIFIER	static inline
  #define TL_ATTR_NORETURN	__attribute__ ((noreturn))
#endif

TL_INLINE_SPECIFIER TLUint64 tlgettid()
{
    return (TLUint64)syscall(SYS_gettid);
}

#endif //BMC_TLPR_LINUX_PTHREAD_H__
